import moment from "moment"
moment.locale("zh-cn")
let timer={};
timer.install = function (Vue){
    Vue.filter("timer", (v, type = "YYYY/MM/DD hh:mm:ss") => {
        return moment(v * 1000).format(type); 
    })
}
export default timer